/*
 * Copyright (C) 2022 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.arthas.psimobile.fragment.report;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.arthas.psimobile.core.BaseFragment;
import com.arthas.psimobile.fragment.login.RegisterFragment;
import com.arthas.psimobile.utils.XToastUtils;
import com.xuexiang.psimobile.R;
import com.xuexiang.psimobile.databinding.FragmentReportBinding;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xpage.enums.CoreAnim;
import com.xuexiang.xui.widget.actionbar.TitleBar;

/**
 * 进入报告申请
 *
 * @author Arthas
 * @since 2022-4-2 18:39
 */
@Page(anim = CoreAnim.none, name = "报告申请")
public class ReportFragment extends BaseFragment<FragmentReportBinding> implements View.OnClickListener {

    @Override
    protected TitleBar initTitle() {
        return null;
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();

        if (id == R.id.apply_report) {
            openNewPage(ApplyReportFragment.class);
        }
    }

    @NonNull
    @Override
    protected FragmentReportBinding viewBindingInflate(LayoutInflater inflater, ViewGroup container) {
        return FragmentReportBinding.inflate(inflater, container, false);
    }

    @Override
    protected void initViews() {
        binding.reportExplain.setText("被我我不vivo比是哦biu我全部IE哦IE我确认过就饿偶尔");
    }

    @Override
    protected void initListeners() {
        binding.applyReport.setOnClickListener(this);
    }
}
